<?php
$FirstName = $_POST['FirstName'];
$LastName = $_POST['LastName'];
$email = $_POST['email'];
$pass1 = $_POST['pass1'];
$pass2 = $_POST['pass2'];
if($pass1 != $pass2)
    header('Location: index.php');
if(strlen($username) > 30)
    header('Location: index.php');
	
function register()
{	
$conn = getConnection();
$query="INSERT INTO Users (FirstName, LastName, email, Passwords) VALUES (".$FirstName.”,”.$LastName.”,”.$email.”,”.$pass1”)”;
$r = mysql_query($sql);
if(!$r) {
$err=mysql_error();
print $err;
exit();
}

